package com.example.test1.service;

import com.example.test1.mapper.MessageInfoMapper;
import com.example.test1.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoServive {
    @Autowired
    MessageInfoMapper messageInfoMapper;
    public Integer insert(MessageInfo messageInfo){
        return messageInfoMapper.insertMessage(messageInfo);
    }
    public List<MessageInfo> selectAll(){
        return messageInfoMapper.selectAllList();
    }
}
